package com.galengao.springboot.eventlistener.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.math.BigDecimal;

/**
 * 优惠代金券
 *
 * @author galenGao
 * @version Id: CouponEvent.java, v 0.1 2022/7/25 23:04  GalenGao Exp $$
 */
@Setter
@Getter
public class CouponEvent extends ApplicationEvent {

    private BigDecimal balance;

    private String username;

    public CouponEvent(Object source) {
        super(source);
    }

    public CouponEvent(Object source, BigDecimal balance,String username) {
        super(source);
        this.balance = balance;
        this.username = username;
    }
}
